//
//  YZNetworkManager+BankCard.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/18.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"

@interface YZNetworkManager (BankCard)

/**
 *  获取银行列表
 *
 *  @param success
 *  @param failure
 */
- (void)bc_fetchBankListWithSuccess:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

/**
 *  获取银行卡列表
 *
 *  @param success
 *  @param failure
 */
- (void)bc_fetchCardListWithSuccess:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

/**
 *  获取支行列表
 *
 *  @param bankName 银行名称
 *  @param province 省份名称
 *  @param city     城市名称
 *  @param success
 *  @param failure
 */
- (void)bc_fetchBranchListWithBankName:(NSString *)bankName andProvince:(NSString *)province andCity:(NSString *)city success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

/**
 *  修改银行卡
 *
 *  @param cardID   银行卡ID
 *  @param province 省份
 *  @param city     城市
 *  @param branch   支行
 *  @param success
 *  @param failure
 */
- (void)bc_modifyBankCardWithCardID:(long long)cardID andBankName:(NSString *)bankName andProvince:(NSString *)province andCity:(NSString *)city andBranch:(NSString *)branch success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

/**
 *  添加银行卡
 *
 *  @param bankName   银行名称
 *  @param province   省份名称
 *  @param city       城市名称
 *  @param branch     支行名称
 *  @param cardNumber 银行卡号
 *  @param success
 *  @param failure
 */
- (void)bc_addBankCardWithBankName:(NSString *)bankName andProvince:(NSString *)province andCity:(NSString *)city andBranch:(NSString *)branch andCardNumber:(NSString *)cardNumber success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

/**
 *  删除银行卡
 *
 *  @param cardID  银行卡ID
 *  @param success
 *  @param failure
 */
- (void)bc_deleteBankCardWithCardID:(long long)cardID success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

/**
 *  设置默认银行卡
 *
 *  @param cardID  银行卡ID
 *  @param success
 *  @param failure
 */
- (void)bc_setDefaultBankCardWithCardID:(long long)cardID success:(void (^)(NSURLResponse *response, id responseObject))success failure:(void (^)(NSError *))failure;

@end
